﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;
using Fuse8.DomainFramework.Domain;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public class CmsMediaContentFindByKeywordsCommand : BaseEntityParameterCommand<CmsMediaContent, CmsMediaContentFindByKeywordsCommandParameter>
    {

        public override string CacheKey
        {
            get
            {
                return string.Format("CmsEntitySearchCommand_{0}_{1}_{2}_{3}_{4}",
                  CommandParameter.SearchQuery, CommandParameter.MediaId,
                  CommandParameter.IsInAdministrationArea,
                  CommandParameter.SiteGroupId,
                  CommandParameter.SiteId);
            }
        }

        public override string CommandName
        {
            get { return "CmsMediaContentFindByKeywordsCommand"; }
        }
    }
}
